package sing.cloud.alibaba.seata;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

import javax.sql.DataSource;

/**
 * @author xing
 * @date 2022/9/3 16:36
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//@EnableFeignClients(basePackages = "sing.cloud.alibaba.seata.service")
@MapperScan(basePackages = "sing.cloud.alibaba.seata.mapper")
public class SeataAccountApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SeataAccountApplication.class, args);
//        String[] beanNamesForType = run.getBeanNamesForType(DataSource.class);
//        for (String s : beanNamesForType) {
//            System.out.println("--------------------");
//            System.out.println(s);
//            System.out.println("--------------------");
//        }
    }
}
